<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@include file="/WEB-INF/pages/common/taglibs.jsp"%>
    <link rel="stylesheet" type="text/css" href="${ctx}resources/css/list.css" /> 
<script type="text/javascript" src="${ctx}resources/js/table.js"></script>
<script type="text/javascript" src="${ctx}resources/js/page.js"></script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<form id="mainForm" action="${ctx}role/list.htm" method="POST" name="mainForm">
	  <tr>
		    <td valign="top"><table width="100%" border="0" cellpadding="0" class="tbl_list"  cellspacing="1">
		      <tr height="30px;">
		      <c:forEach var="field" items="${fields}">
		        	<th bgcolor="d3eaef" class="STYLE6"><div align="center"><span >${field.name}</span></div></th>
		      </c:forEach>
		      </tr>
		      <c:forEach items="${page.result}" var="atom">
			  <tr>
		     <c:forEach var="field" items="${fields}">
			       <c:forEach var="row" items="${atom.rows}">
			       		<c:if test="${row.key.id==field.id}"><td><div align="center"><c:if test="${field.fieldType.label eq 'D'}"><fmt:formatDate value="${row.value.fieldValue}" pattern="yyyy-MM-dd HH:mm:ss"/></c:if><c:if test="${field.fieldType.label != 'D'}">${row.value.fieldValue}</c:if></div></td></c:if>
			       </c:forEach>
	        </c:forEach>
			      </tr>
	     	 </c:forEach>
		       <tr>
		        <td height="30" colspan="5"><%@include file="/WEB-INF/pages/common/footer.jsp"%></td>
		       </tr>
		    </table></td>
	  	</tr>
  </form>
</table>
